home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 476-500 / disk_497 / nlcalc / source / cimage.c < prev    next >
C/C++ Source or Header  |  1992-05-06  |  2KB  |  110 lines

  1. /*
  2.  *  CALC      Provides a calculator that opens on the active screen when
  3.  *            you press a specific key sequence.  Otherwise, the program
  4.  *            waits quitely in the background.
  5.  *
  6.  *              Copyright 1989 by Davide P. Cervone.
  7.  *  You may use this code, provided this copyright notice is kept intact.
  8.  */
  9.  
  10. #include <exec/types.h>
  11.  
  12. #define UPWIDTH       24
  13. #define UPHEIGHT      10
  14. #define UPDEPTH       2
  15. #define UPWORDS       2
  16.  
  17. USHORT UpFrontData[UPDEPTH][UPHEIGHT*UPWORDS] =
  18. {
  19.   {
  20.     0xFFFF, 0xFF00,
  21.     0xC000, 0x0300,
  22.     0xC7FF, 0x8300,
  23.     0xC7FF, 0x8300,
  24.     0xC7FF, 0xF300,
  25.     0xC7FF, 0xF300,
  26.     0xC7FF, 0xF300,
  27.     0xC07F, 0xF300,
  28.     0xC000, 0x0300,
  29.     0xFFFF, 0xFF00,
  30.   },
  31.   {
  32.     0x0000, 0x0100,
  33.     0x3FFF, 0xFF00,
  34.     0x3FFF, 0xFF00,
  35.     0x3FFF, 0xFF00,
  36.     0x3F80, 0x0F00,
  37.     0x3F80, 0x0F00,
  38.     0x3F80, 0x0F00,
  39.     0x3F80, 0x0F00,
  40.     0x3FFF, 0xFF00,
  41.     0x7FFF, 0xFF00,
  42.   },
  43. };
  44.  
  45. #define DOWNWIDTH       24
  46. #define DOWNHEIGHT      10
  47. #define DOWNDEPTH       2
  48. #define DOWNWORDS       2
  49.  
  50. USHORT DownBackData[DOWNDEPTH][DOWNHEIGHT*DOWNWORDS] =
  51. {
  52.   {
  53.     0xFFFF, 0xFF00,
  54.     0xC000, 0x0300,
  55.     0xC7FF, 0x8300,
  56.     0xC7FF, 0x8300,
  57.     0xC7FF, 0xF300,
  58.     0xC7FF, 0xF300,
  59.     0xC7FF, 0xF300,
  60.     0xC07F, 0xF300,
  61.     0xC000, 0x0300,
  62.     0xFFFF, 0xFF00,
  63.   },
  64.   {
  65.     0x0000, 0x0100,
  66.     0x3FFF, 0xFF00,
  67.     0x3800, 0x7F00,
  68.     0x3800, 0x7F00,
  69.     0x387F, 0xFF00,
  70.     0x387F, 0xFF00,
  71.     0x387F, 0xFF00,
  72.     0x3FFF, 0xFF00,
  73.     0x3FFF, 0xFF00,
  74.     0x7FFF, 0xFF00,
  75.   },
  76. };
  77.  
  78. #define CLOSEWIDTH       21
  79. #define CLOSEHEIGHT      10
  80. #define CLOSEDEPTH       2
  81. #define CLOSEWORDS       2
  82.  
  83. USHORT CloseData[CLOSEDEPTH][CLOSEHEIGHT*CLOSEWORDS] =
  84. {
  85.   {
  86.     0xFFFF, 0xF800,
  87.     0xC000, 0x1800,
  88.     0xCFFF, 0x9800,
  89.     0xCC01, 0x9800,
  90.     0xCC01, 0x9800,
  91.     0xCC01, 0x9800,
  92.     0xCC01, 0x9800,
  93.     0xCFFF, 0x9800,
  94.     0xC000, 0x1800,
  95.     0xFFFF, 0xF800,
  96.   },
  97.   {
  98.     0x0000, 0x0800,
  99.     0x3FFF, 0xF800,
  100.     0x3FFF, 0x7800,
  101.     0x3FFE, 0x7800,
  102.     0x3FFE, 0x7800,
  103.     0x3FFE, 0x7800,
  104.     0x3FFE, 0x7800,
  105.     0x3800, 0x7800,
  106.     0x3FFF, 0xF800,
  107.     0x7FFF, 0xF800,
  108.   },
  109. };
  110.